<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			body {
				perspective: 500px;/*全局透视*/
			}
			.wrap {
				margin: 200px auto;
				width: 500px;
				height: 500px;
				/* background-color: #EEEEEE; */
				display: flex;
				justify-content: center;
				align-items: center;
				border: 3px solid #FF6700;
				transform-style: preserve-3d;
				transform: rotateY(45deg);
				position: relative;
			}
			.inner:nth-child(1) {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%,-50%);
				width: 16.25rem;
				height: 260px;
				background-color: #FF6700;
				transform-style: preserve-3d;
			}
			.inner:nth-child(2) {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%,-50%);
				width: 16.25rem;
				height: 260px;
				background-color: #41ad4a;
				z-index: 1;
				transition: all 2s;
			}
			
			.wrap:hover  .inner:nth-child(2){
				transform: translate(-50%,-50%)  scale3d(1,2,3);/*给z轴做偏移只能使用px*/
			}
		</style>
	</head>
	<body>
		<div class="wrap">
			<div class="inner"></div>
			<div class="inner"></div>
			
		</div>
	</body>
</html>
